<h2 class="contentTitle">表单验证</h2>
<div class="pageContent">
	<form method="post" action="{:U('New/editAction')}?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt>商品分类：</dt>
				<dd>
					<input type="text" name="name" maxlength="20" class="required" value="{$sql.name}"/>
					<span class="info">用户名</span>
					<input type="hidden" name="id" value="{$sql.id}"/>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>
